package com.ourhours;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Application
 *
 * @author liuxiangyang
 * @create 2017-10-16 02:40
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableAsync
@EnableScheduling
public class MqApplication {

    public static void main(String[] args) throws Exception {
        new SpringApplicationBuilder()
                .sources(MqApplication.class)
                .web(false)
                .bannerMode(Banner.Mode.CONSOLE)
                .run(args)
                .registerShutdownHook();
        Thread.currentThread().join();
    }

}
